package java3_7;

import java.util.Scanner;

/**
 * 11：定义一个整数数组，判断其中是否有重复的数据
 */
public class homework11 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int [] a = new int[5];
        for (int i = 0; i < a.length; i++) {
            a[i] = scanner.nextInt();
        }
        for (int i = 0; i < a.length; i++) {
            for (int x = 0; x < a.length; x++) {
                if(x>i){
                if (a[x]==a[i]){
                    System.out.println("有重复的数据");
                    return;
                }
            }
            }
        }
        System.out.println("没有重复的数据");
    }
}
